package com.pubinfo.passbook.common.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TRuleRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pubinfo.passbook.common.entity.TSystemRole;
import com.pubinfo.passbook.common.model.dto.rule.RuleRoleParam;
import com.pubinfo.passbook.common.model.vo.rule.RuleRoleIdRelevanceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.pubinfo.passbook.common.entity.TRuleRole
 */
public interface TRuleRoleMapper extends BaseMapper<TRuleRole> {
  IPage<TRuleRole> selectRuleRole(IPage<TRuleRole> iPage, @Param("param") RuleRoleParam param);
  
  List<RuleRoleIdRelevanceVo> selectRoleIdRelevance(String roleId);
  
  List<TSystemRole> findRolesByAcct(@Param("acct") String acct, @Param("code") String roleCode);
  
  boolean deleteRoleReimbursable(String roleId);
}




